<?php /* Smarty version 2.6.20, created on 2013-05-25 01:50:41
         compiled from _core/_include/module/_mvc/control/handledialoginput.tpl */ ?>
function HandleDialogInput(gui, item, options) {
  this._gui = gui;
  this._item = item;
  this._options = options;
  
  this._title = (options && options.title) ? options.title : '';
  this._default = (options && options.default) ? options.default : '';
  this._createElements();
};

HandleDialogInput.prototype._createElements = function() {
  var _self = this;
  
  this._item._text = this._default;
  
  this._gui.title.appendChild(document.createTextNode(this._title));
  this._gui.input.value = this._default;
  
  this._gui.input.onchange = function() { _self._item._text = this.value; };
};